// roughly correspond to the PHP variables:
var level = 0;
var destUser;
var destType;
var destAlbumId;
var destItemId;

function initShowcase()
{
	document.getElementById("dcf").src = "ListView.php?level="+level+"&destUser="+destUser
		+"&destType="+destType+"&destAlbumId="+destAlbumId+"&destItemId="+destItemId;
		
	//alert("ListView.php?level="+level+"&destUser="+destUser
	//	+"&destType="+destType+"&destAlbumId="+destAlbumId+"&destItemId="+destItemId);
}

document.getElementsByClassName = function(cl) {
var retnode = [];
var myclass = new RegExp('\\b'+cl+'\\b');
var elem = this.getElementsByTagName('*');
for (var i = 0; i < elem.length; i++) {
var classes = elem[i].className;
if (myclass.test(classes)) retnode.push(elem[i]);
}
return retnode;
};